command="/usr/bin/gitlab-ctl"
deps="dependUnit=(gitaly gitlab-monitor gitlab-workhorse logrotate nginx node-exporter postgres-exporter postgresql prometheus redis redis-exporter sidekiq unicorn);";
echo"#!/bin/bash
packageServeiceName=$packageServeiceName
sep=$sep
#定义启动集合
deps=\"dependUnit=(gitaly gitlab-monitor gitlab-workhorse logrotate nginx node-exporter postgres-exporter postgresql prometheus redis redis-exporter sidekiq unicorn);\";
command=\"systemctl \$1\";
for sub in \${deps[@]}
  do
    \$command \$packageServeiceName\$sep\$sub
    echo \"正在启动\$packageServeiceName\$sep\$sub 服务...\"
  done
">/usr/bin/gitlab-custom
chmod u+x /usr/bin/gitlab-custom
